Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grpc: fixed BoardListWatch streaming call #2664

Merged
merged 3 commits into from
Jul 12, 2024

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Jul 11, 2024

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

The gRPC streaming call BoardListWatch does not persist until the client cancels the gRPC call. Instead the call is immediately canceled server side. This is a regression introduced in CLI 1.0.0.

What is the current behavior?

The gRPC call BoardListWatch is canceled server-side almost immediately.

What is the new behavior?

The gRPC call BoardListWatch runs until it is canceled client-side.

Does this PR introduce a breaking change, and is titled accordingly?

No

Other information

@cmaglie cmaglie self-assigned this Jul 11, 2024
@cmaglie cmaglie added type: imperfection Perceived defect in any part of project topic: gRPC Related to the gRPC interface labels Jul 11, 2024
@cmaglie cmaglie added this to the Arduino CLI v1.0.3 milestone Jul 11, 2024
Copy link

codecov bot commented Jul 11, 2024

Codecov Report

Attention: Patch coverage is 54.54545% with 5 lines in your changes missing coverage. Please review.

Project coverage is 70.24%. Comparing base (33dfa8e) to head (fee84a9).
Report is 2 commits behind head on master.

Files Patch % Lines
internal/cli/board/list.go 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2664      +/-   ##
==========================================
- Coverage   70.27%   70.24%   -0.04%     
==========================================
  Files         222      222              
  Lines       21347    21346       -1     
==========================================
- Hits        15002    14994       -8     
- Misses       5159     5174      +15     
+ Partials     1186     1178       -8     
Flag Coverage Δ
unit 70.24% <54.54%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@giacomocusinato giacomocusinato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on IDE2, previous problems with BoardListWatch are now fixed

@cmaglie cmaglie merged commit b4f8849 into arduino:master Jul 12, 2024
98 checks passed
@cmaglie cmaglie deleted the fix_grpc_boardwatch_call branch July 12, 2024 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: gRPC Related to the gRPC interface type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants